<html>
<head>
    <title>EJS HTML <%=title%> INDEX</title>
</head>

<script>
    function changeLang(value) {
        document.cookie="langName="+value;
    }

</script>


<link href="/stylesheets/style.css" rel="stylesheet" type="text/css" />
<body>
<div>
   <b>选择语言</b>
    <select name="langSelect"onchange="javascript:changeLang(this.options[this.options.selectedIndex].value);">
        <option value ="i18n_en">ENGLISH</option>
        <option value ="i18n_cn_simple">简体中文</option>
        <option value ="i18n_cn_traditional">繁体中文</option>
    </select>
</div>

<h1><%=title%></h1>
<p>Welcome to <%=title%></p>

    <div>
        <form id="loginForm" method="post" action="/user/doLogin">
            <label ><%=username%></label><input type="text" name="username" value="" placeholder="<%=username_placeholder%>"/><br>
            <label ><%=password%></label><input type="password" name="password" value="" placeholder="<%=password_placeholder%>"/>
            <input type="submit" name="login" value="<%=login%>"/>
        </form>
    </div>
    <a href="/register">sign in</a>

</body>

</html>